﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Manage/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QianBuo.Lottery.Web.Areas.Manage.Models.Authorization.IndexModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	功能设置
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<fieldset class="fieldset">
    <legend>功能设置</legend>
    <% Html.DisableClientValidation(); %>
    <% Html.BeginForm(); %>
    <ul class="editlist">
        <% var tp = string.Empty; %>
        <% for (int i = 0; i < Model.Authoritys.Length; i++) %>
        <% { var item = Model.Authoritys[i]; %>
            <% if (tp != item.Remark)%>
            <% { %>
            <%=tp == string.Empty ? "" : "</span></li>"%>
            <li><label class="label"><%=item.Remark%>：</label><span class="spans">
            <% tp = item.Remark;%>
            <% } %>
            <span class="span1 width120">
                <%=Html.CheckBoxFor(p => p.Authoritys[i].State, item.State)%>
                <%=Html.HiddenFor(p=>p.Authoritys[i].ID) %>
                <%=Html.HiddenFor(p=>p.Authoritys[i].Name) %>
                <%=Html.HiddenFor(p=>p.Authoritys[i].Remark) %>
                <label for='Authoritys_<%=i %>__State'><%=item.Name%></label>
                <%=Html.ValidationMessageFor(p=>Model.Authoritys[i].State) %>
            </span>
        <% } %>        
            </span>
        </li>
        <li class="btn">
            <input type="submit" value="保存" onclick="return confirm('确定提交吗？')" />
        </li>
    </ul>
    <% Html.EndForm(); %>
</fieldset>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="StyleAndScript" runat="server">
</asp:Content>
